import Layout from '@/layouts';

export default [
  {
    path: '/group ',
    name: 'Group',
    component: Layout,
    redirect: '/group/admin',
    meta: { title: '组织管理', icon: 'fork' },
    children: [
      {
        path: 'admin',
        name: 'AdminPermission',
        component: () => import('@/pages/group/admin/index.vue'),
        meta: { title: '人员列表' },
      },
      {
        path: 'role',
        name: 'RolePermission',
        component: () => import('@/pages/group/role/index.vue'),
        meta: { title: '角色管理' },
      },
      {
        path: 'permission',
        name: 'MenuPermission',
        component: () => import('@/pages/group/permission/index.vue'),
        meta: { title: '菜单管理' },
      },
      {
        path: 'api',
        name: 'ApiManage',
        component: () => import('@/pages/group/api/index.vue'),
        meta: { title: '接口管理' },
      },
    ],
  },
];
